/**
 *  OSS 服务接口
 */
import request from '@/utils/request'
const baseShareApi = '/oss/share'

export function uploadStudentPhoto(formData) {
  return request({
    url: `${baseShareApi}/upload-student-photo`,
    method: 'put',
    data: formData
  })
}

export function uploadTeacherPhoto(formData) {
  return request({
    url: `${baseShareApi}/upload-teacher-photo`,
    method: 'put',
    data: formData
  })
}

// 上传课程资源文件
export function uploadCourseResource(formData) {
  return request({
    url: `${baseShareApi}/upload-course-resource`,
    method: 'put',
    data: formData
  })
}
